import request from "./request";
import { ElMessage } from 'element-plus'
const requestMapping = "/question";
export const getQuestionByPage = async (params: TYPE.ParamsPage) => {
    return request({
        url: requestMapping + "/page",
        method: "post",
        data: params
    })
}
export const saveQuestion = async (question: TYPE.QuestionDTO) => {
    return request({
        url: requestMapping,
        method: "post",
        data: question
    })
}